package com.baizhi.cmfzdemo.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import cn.afterturn.easypoi.excel.annotation.ExcelIgnore;

import java.io.Serializable;
import java.util.List;

/**
 * Created by 54433 on 2019/4/9.
 */
public class CmfzMenuDto implements Serializable{
    @Excel(name="一级级菜单编号")
    private int menuId;
    @Excel(name="一级菜单名字")
    private String menuName;
    @ExcelIgnore
    private String menuUrl;
    @ExcelIgnore
    private int menuParentId;
    @ExcelCollection(name="二级菜单")
    private List<CmfzMenu> child;

    @Override
    public String toString() {
        return "CmfzMenuDto{" +
                "menuId=" + menuId +
                ", menuName='" + menuName + '\'' +
                ", menuUrl='" + menuUrl + '\'' +
                ", menuParentId=" + menuParentId +
                ", child=" + child +
                '}';
    }

    public int getMenuId() {
        return menuId;
    }

    public void setMenuId(int menuId) {
        this.menuId = menuId;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getMenuUrl() {
        return menuUrl;
    }

    public void setMenuUrl(String menuUrl) {
        this.menuUrl = menuUrl;
    }

    public int getMenuParentId() {
        return menuParentId;
    }

    public void setMenuParentId(int menuParentId) {
        this.menuParentId = menuParentId;
    }

    public List<CmfzMenu> getChild() {
        return child;
    }

    public void setChild(List<CmfzMenu> child) {
        this.child = child;
    }

    public CmfzMenuDto() {

    }

    public CmfzMenuDto(int menuId, String menuName, String menuUrl, int menuParentId, List<CmfzMenu> child) {

        this.menuId = menuId;
        this.menuName = menuName;
        this.menuUrl = menuUrl;
        this.menuParentId = menuParentId;
        this.child = child;
    }
}
